package com.jxgk.application.controller;

import com.alibaba.druid.pool.DruidDataSource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController

public class xiaopang {
    @Autowired
    private DruidDataSource dataSource;

 @RequestMapping("zz")
    public Map<String, Object>zz(){
     Map<String,Object> map=new HashMap<>();
     map.put("url",dataSource.getUrl());

     map.put("password",dataSource.getUrl());
     return map;

 }
}
